﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
namespace WebCurriculumn.Helper
{

/// <summary>
/// IniFile の概要の説明です
/// </summary>
public class IniFile
{
	public IniFile()
	{
		//
		// TODO: コンストラクタ ロジックをここに追加します
		//
	}
    
    public  static string readIni(string key) 
    {

        string sRtn;
        int count;
        
        count = ConfigurationManager.AppSettings.Count;
        sRtn = ConfigurationManager.AppSettings[key].ToString();        
        return sRtn;
        //return pf_StrNullCut(sRtn);
        
    }

    private string pf_StrNullCut(string psInStr ) 
    {

        int lPos ;

        lPos = 1;//InStr(1, psInStr, vbNullChar);        
        return "";
        if (lPos >0)
         {
           // pf_StrNullCut = psInStr.Substring(0,lPos-1);  //Left$(psInStr, lPos - 1);
        }
        else
        {
            // pf_StrNullCut = psInStr;
        }
    }
}
}